package cn.lili.timetask.handler.impl.goods;

import cn.lili.modules.goods.client.GoodsClient;
import cn.lili.timetask.handler.EveryHourExecute;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Component;

/**
 * 商品定时器
 *
 * @author Chopper
 * @since 2021/3/18 3:23 下午
 */
@Component
@RequiredArgsConstructor
public class GoodsHourExecute implements EveryHourExecute {

    private final GoodsClient goodsClient;
    /**
     * 同步订单状态
     */
    @Override
    public void execute() {
        goodsClient.execute();
    }
}
